console.log(
  new Array(10).fill(null).map((item) => Math.floor(Math.random() * 10))
);

const s = "a.png";
console.log([".jpg", ".png", ".bmp", ".gif"].includes(s));
